package com.honglang.module.log.service;

import java.util.Date;

import com.honglang.module.log.dao.LoginLogDao;
import com.honglang.module.log.entity.LoginLog;
import com.honglang.module.user.entity.User;

public class LoginLogServiceImpl implements LoginLogService{
	private LoginLogDao loginLogDao;

	
	
	/**
	 * save the loginLog;
	 * @param user
	 */
	public void saveLoginLog(User user){
		LoginLog loginLog = new LoginLog();
		loginLog.setUser(user);
		loginLog.setLoginDate(new Date());
		
		this.getLoginLogDao().saveOrUpdate(loginLog);
		
	}
	
	
	
	
	
	
	public LoginLogDao getLoginLogDao() {
		return loginLogDao;
	}

	public void setLoginLogDao(LoginLogDao loginLogDao) {
		this.loginLogDao = loginLogDao;
	}
	
	
	
}
